package jiequ;
import java.util.Scanner;
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;
public class jiequ {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		 int i=0;
		StringBuilder stringBuilder = new StringBuilder();
		while(true){
		int n = sc.nextInt();
		int x=sc.nextInt();
		int y=sc.nextInt();
		while (i<n) {
	
		for (i = 0; i < n; i++) {
		stringBuilder.append(i);
		}
	System.out.println(stringBuilder.substring(x, y));
		}}
		
}
		}


